import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      redirect:{name:"content"},
      component:()=> import('./views/Home')

    },
    {
      path:'/content',
      name:"content",
      component:()=> import('./components/content')
    },
    {
      path:'/hotSong',
      component:()=> import('./components/hotSong')
    },
    {
      path:"/search",
      component:()=> import('./components/search')
    },
    {
      path:"/recommentSong",
      component:()=> import('./components/recommentSongMusicBox')
    },
    {
      path:"/playMusic",
      component:()=> import('./components/playMusic')
    }
  ]
})
